package com.bit.demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: kano
 * Date: 2025-02-15
 * Time: 23:06
 */
public class Computer {
    private  String cpu;
    private  String memory;//内存
    public String screen;//屏幕
    String brand ;//品牌 权限是default

    public Computer(String brand,String cpu,String memory,String screen)
    {
        this.brand = brand;
        this.cpu = cpu;
        this.screen = screen;
        this.memory = memory;
    }

    public  void Boot()
    {
        System.out.println("开机---");
    }
    public void PowerOff()
    {
        System.out.println("关系---");
    }
    public void SurfInternet()
    {
        System.out.println("上网---");
    }
}

class Dog
{
    public String name;
    int age;
    public Dog()
    {
        this.name = "haha";
        this.age = 8;
    }
}